package com.ruoyi.inspection.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inspection.mapper.TInspectionMapper;
import com.ruoyi.inspection.domain.TInspection;
import com.ruoyi.inspection.service.ITInspectionService;

/**
 * 巡检记录审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class TInspectionServiceImpl implements ITInspectionService 
{
    @Autowired
    private TInspectionMapper tInspectionMapper;

    /**
     * 查询巡检记录审核
     * 
     * @param id 巡检记录审核主键
     * @return 巡检记录审核
     */
    @Override
    public TInspection selectTInspectionById(String id)
    {
        return tInspectionMapper.selectTInspectionById(id);
    }

    /**
     * 查询巡检记录审核列表
     * 
     * @param tInspection 巡检记录审核
     * @return 巡检记录审核
     */
    @Override
    public List<TInspection> selectTInspectionList(TInspection tInspection)
    {
        return tInspectionMapper.selectTInspectionList(tInspection);
    }

    /**
     * 新增巡检记录审核
     * 
     * @param tInspection 巡检记录审核
     * @return 结果
     */
    @Override
    public int insertTInspection(TInspection tInspection)
    {
        return tInspectionMapper.insertTInspection(tInspection);
    }

    /**
     * 修改巡检记录审核
     * 
     * @param tInspection 巡检记录审核
     * @return 结果
     */
    @Override
    public int updateTInspection(TInspection tInspection)
    {
        return tInspectionMapper.updateTInspection(tInspection);
    }

    /**
     * 批量删除巡检记录审核
     * 
     * @param ids 需要删除的巡检记录审核主键
     * @return 结果
     */
    @Override
    public int deleteTInspectionByIds(String[] ids)
    {
        return tInspectionMapper.deleteTInspectionByIds(ids);
    }

    /**
     * 删除巡检记录审核信息
     * 
     * @param id 巡检记录审核主键
     * @return 结果
     */
    @Override
    public int deleteTInspectionById(String id)
    {
        return tInspectionMapper.deleteTInspectionById(id);
    }
}
